//
//  BKContentView.h
//  bestkeep
//
//  Created by utouu666 on 17/2/16.
//  Copyright © 2017年 utouu. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "BKScrollPageViewDelegate.h"
#import "BKCollectionView.h"
#import "BKScrollSegmentView.h"
#import "UIViewController+BKScrollPageController.h"

@interface BKContentView : UIView

/** 必须设置代理和实现相关的方法*/
@property(weak, nonatomic)id<BKScrollPageViewDelegate> delegate;
@property (strong, nonatomic, readonly) BKCollectionView *collectionView;

/**初始化方法
 *
 */
- (instancetype)initWithFrame:(CGRect)frame segmentView:(BKScrollSegmentView *)segmentView parentViewController:(UIViewController *)parentViewController delegate:(id<BKScrollPageViewDelegate>) delegate;

/** 给外界可以设置ContentOffSet的方法 */
- (void)setContentOffSet:(CGPoint)offset animated:(BOOL)animated;
/** 给外界 重新加载内容的方法 */
- (void)reload;

@end
